//
//  FLTipsManagement.m
//  BaseRepo
//
//  Created by leo on 2018/8/16.
//  Copyright © 2018年 LEO. All rights reserved.
//

#import "FLTipsManagement.h"
#import "SVProgressHUD.h"

@implementation FLTipsManagement

+ (void)showInfoStatus:(NSString *)status {
    
    [self defaultSettings];
    
    [SVProgressHUD showInfoWithStatus:status];
}



+ (void)defaultSettings {
    
    [SVProgressHUD setBackgroundColor:[[UIColor blackColor] colorWithAlphaComponent:0.9]];
//    [SVProgressHUD setImageViewSize:CGSizeZero];
    [SVProgressHUD setCornerRadius:5];
    [SVProgressHUD setFont:[UIFont systemFontOfSize:17]];
    [SVProgressHUD setForegroundColor:[UIColor whiteColor]];
//    [SVProgressHUD setInfoImage:[[UIImage alloc] init]];
    [SVProgressHUD setMinimumDismissTimeInterval:10];
    [SVProgressHUD setDefaultMaskType:(SVProgressHUDMaskTypeNone)];
    [SVProgressHUD setMinimumSize:CGSizeMake(100, [UIFont systemFontOfSize:17].lineHeight + 10)];
    [SVProgressHUD setDefaultAnimationType:SVProgressHUDAnimationTypeNative];
    [SVProgressHUD setShouldTintImages:NO];
    if ([SVProgressHUD isVisible]) {
        [SVProgressHUD dismiss];
    }

}
@end
